package com.ebelter.scaleblesdk.model;

/**
 * 体重测量数据
 * @author fenghui
 *
 */
public class Weight {
	private int userId;
	private float weight;
	private int year;
	private int month;
	private int date;
	private int hour;
	private int minute;
	private int second;
	private int weekOfYear;

	public int getUserId() {
		return userId;
	}
	public void setUserId(int userId) {
		this.userId = userId;
	}

	public float getWeight() {
		return weight;
	}
	public void setWeight(float weight) {
		this.weight = weight;
	}

	public int getYear() {
		return year;
	}
	public void setYear(int year) {
		this.year = year;
	}
	public int getMonth() {
		return month;
	}
	public void setMonth(int month) {
		this.month = month;
	}
	public int getDate() {
		return date;
	}
	public void setDate(int date) {
		this.date = date;
	}
	public int getHour() {
		return hour;
	}
	public void setHour(int hour) {
		this.hour = hour;
	}
	public int getMinute() {
		return minute;
	}
	public void setMinute(int minute) {
		this.minute = minute;
	}
	public int getSecond() {
		return second;
	}
	public void setSecond(int second) {
		this.second = second;
	}
	public int getWeekOfYear() {
		return weekOfYear;
	}
	public void setWeekOfYear(int weekOfYear) {
		this.weekOfYear = weekOfYear;
	}

	@Override
	public String toString() {
		StringBuilder sb = new StringBuilder();
		sb.append("weight  data.");
		sb.append("test time:");
		sb.append(year).append("-").append(month).append("-").append(date);
		sb.append(" ").append(hour).append(":").append(minute).append(":").append(second);
		sb.append(", weight:").append(weight);

		return sb.toString();
	}
}